Skip to content

fix(pypi): reuse select dicts for constructing the env#3108

Merged
rickeylev merged 2 commits into
bazel-contrib:mainfrom
aignas:fix.pep508_env
Aug 11, 2025
Merged

fix(pypi): reuse select dicts for constructing the env#3108
rickeylev merged 2 commits into
bazel-contrib:mainfrom
aignas:fix.pep508_env

Conversation

@aignas

@aignas aignas commented Jul 20, 2025

Copy link
Copy Markdown
Collaborator

Before this PR we would be constructing slightly different environments
when the env_marker_setting is doing it in the analysis phase and when
we are doing it in the repo phase due to how the defaults are handled.

In this change we simply reuse the same select statements and add an extra
helper that is allowing us to process that.

Work towards #2949
Prep for #3058

@aignas
aignas requested review from groodt and rickeylev as code owners July 20, 2025 23:35
@aignas
aignas force-pushed the fix.pep508_env branch 6 times, most recently from 0af9537 to cca2bb0 Compare July 21, 2025 01:53
@aignas aignas added the type: pip pip/pypi integration label Jul 21, 2025
Before this PR we would be constructing slightly different environments
when the `env_marker_setting` is doing it in the analysis phase and when
we are doing it in the repo phase due to how the defaults are handled.

In this change we simply reuse the same select statements and add an extra
helper that is allowing us to process that.

Work towards bazel-contrib#2949
Prep for bazel-contrib#3058
@rickeylev
rickeylev enabled auto-merge August 11, 2025 03:18
@rickeylev
rickeylev added this pull request to the merge queue Aug 11, 2025
Merged via the queue into bazel-contrib:main with commit 5c09732 Aug 11, 2025
3 checks passed
@aignas
aignas deleted the fix.pep508_env branch August 11, 2025 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: pip pip/pypi integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants